package cn.tedu._06interceptor.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("v1/users/")
@Api(tags = "用户模块")
public class UserController {
    @PostMapping("login")
    @ApiOperation("登录功能")
    public String login() {
        return "登录成功";
    }

    @GetMapping("reg")
    @ApiOperation("注册功能")
    public String reg() {
        return "注册成功";
    }

    @GetMapping("pwd")
    @ApiOperation("修改密码功能")
    public String pwd() {
        return "修改密码成功";
    }
}
